cmake_minimum_required(VERSION 2.8)
project(demo)
set(CMAKE_CXX_STANDARD 11)

MESSAGE("PROJECT_NAME:${PROJECT_NAME}")

aux_source_directory(. SRC_LIST)
MESSAGE("SRC_LIST:${SRC_LIST}")

add_executable(${PROJECT_NAME} ${SRC_LIST})
target_link_libraries(${PROJECT_NAME} pthread)

  
  